class Cookbook
{
	String cookName;
	String cookType;
	String memo;
	Integer ordernum = 500;
	String content;
	
	static constraints = 
	{
		cookName(blank:false, maxSize:50)
		cookType(blank:false, maxSize:20, inList:['热菜','凉菜','汤菜','主食','其他'])
		memo(nullable:true, maxSize:100)
		content(blank:false, maxSize:10000)
	}
}